package imli.me.lquan.ui;


import android.support.v7.widget.RecyclerView;

import com.alibaba.android.vlayout.VirtualLayoutManager;

import butterknife.BindView;
import imli.me.lquan.R;
import imli.me.lquan.base.activity.BaseActivity;
import imli.me.lquan.ui.main.MainAdapter;

public class MainActivity extends BaseActivity {

    @BindView(R.id.recycler)
    RecyclerView recyclerView;

    @Override
    protected int inflateLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected void initialization() {
        super.initialization();

        VirtualLayoutManager layoutManager = new VirtualLayoutManager(this);
        recyclerView.setLayoutManager(layoutManager);

        RecyclerView.RecycledViewPool viewPool = new RecyclerView.RecycledViewPool();
        recyclerView.setRecycledViewPool(viewPool);
        viewPool.setMaxRecycledViews(0, 10);

        MainAdapter adapter = new MainAdapter(layoutManager);
    }
}
